package com.shuxingzhuu;

public class lieren {

 private Cat cat;
 private Dog dog;
 private String str;

 public Cat getCat() {
  return cat;
 }

 public void setCat(Cat cat) {
  this.cat = cat;
 }

 public Dog getDog() {
  return dog;
 }

 public void setDog(Dog dog) {
  this.dog = dog;
 }

 public String getStr() {
  return str;
 }

 public void setStr(String str) {
  this.str = str;
 }

 public void show(){
  System.out.println(str);
 }

 @Override
 public String toString() {
  return "lieren{" +
          "cat=" + cat +
          ", dog=" + dog +
          ", str='" + str + '\'' +
          '}';
 }
}
